package com.java_base.memory;

public class ArrayDemo02 {
    public static void main(String[] args) {
        // 目标：理解两个数组变量指向同一个数组对象
        int[] arr1 = {11,22,33};
        int[] arr2 = arr1;
        System.out.println(arr1);
        System.out.println(arr2);
        arr1[0] = 99;
        System.out.println(arr1[0]);
        System.out.println(arr2[0]);
    }
}
